package com.greenleaf.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 评价表（留言表）
 * */
@Component
public class Comment {
private Integer cmtId;//编号
private Integer vId;//所属会员
private String cmtTest;//评价内容
private String lv;//评价星级
@JsonFormat(pattern = "yyyy-MM-dd ",timezone="GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
private Date cmtTime;//评价时间
private Integer pdtId;//所属商品
private String cmtContent;//回复内容
@JsonFormat(pattern = "yyyy-MM-dd ",timezone="GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
private Date cmtReplyTime;//回复时间
private String reply;//是否回复
public Comment(Integer cmtId, Integer vId, String cmtTest, String lv, Date cmtTime, Integer pdtId, String cmtContent,
		Date cmtReplyTime, String reply) {
	super();
	this.cmtId = cmtId;
	this.vId = vId;
	this.cmtTest = cmtTest;
	this.lv = lv;
	this.cmtTime = cmtTime;
	this.pdtId = pdtId;
	this.cmtContent = cmtContent;
	this.cmtReplyTime = cmtReplyTime;
	this.reply = reply;
}
public Comment() {
	super();
}
@Override
public String toString() {
	return "Comment [cmtId=" + cmtId + ", vId=" + vId + ", cmtTest=" + cmtTest + ", lv=" + lv + ", cmtTime=" + cmtTime
			+ ", pdtId=" + pdtId + ", cmtContent=" + cmtContent + ", cmtReplyTime=" + cmtReplyTime + ", reply=" + reply
			+ "]";
}
public Integer getCmtId() {
	return cmtId;
}
public void setCmtId(Integer cmtId) {
	this.cmtId = cmtId;
}
public Integer getvId() {
	return vId;
}
public void setvId(Integer vId) {
	this.vId = vId;
}
public String getCmtTest() {
	return cmtTest;
}
public void setCmtTest(String cmtTest) {
	this.cmtTest = cmtTest;
}
public String getLv() {
	return lv;
}
public void setLv(String lv) {
	this.lv = lv;
}
public Date getCmtTime() {
	return cmtTime;
}
public void setCmtTime(Date cmtTime) {
	this.cmtTime = cmtTime;
}
public Integer getPdtId() {
	return pdtId;
}
public void setPdtId(Integer pdtId) {
	this.pdtId = pdtId;
}
public String getCmtContent() {
	return cmtContent;
}
public void setCmtContent(String cmtContent) {
	this.cmtContent = cmtContent;
}
public Date getCmtReplyTime() {
	return cmtReplyTime;
}
public void setCmtReplyTime(Date cmtReplyTime) {
	this.cmtReplyTime = cmtReplyTime;
}
public String getReply() {
	return reply;
}
public void setReply(String reply) {
	this.reply = reply;
}


}
